// src/composables/useTheme.ts
import { ref, onMounted } from 'vue'

export function useTheme() {
  const colorStyle = ref('')

  function loadTheme() {
    colorStyle.value = uni.getStorageSync('viewColor')
  }

  onMounted(() => {
    loadTheme()
  })

  return {
    colorStyle,
  }
}